<?php
accessPage(3);
my_component_load('testing' , false);
my_component_load('paging' , false);
my_component_load('alamat' , false);
my_component_load('kebutuhan');
$task = isset($_GET['task']) ? $_GET['task'] : ""; 
$id = isset( $_GET['id'] ) ? $_GET['id']:  0;
$jumlah= isset( $_GET['jumlah'] ) ? $_GET['jumlah']:  0;
$modulname = "Personalia _BN_ Penempatan _BN_ HR Planning _BN_ Gap Man Power";
if($_SERVER['REQUEST_METHOD'] == "POST" ):
	$validate = ptk_validate($id, $jumlah);
	if($validate){
		$pagename = $modulname."_BN_ Tambah Data"; 
		$content = message_multi_error($validate );
		$content .= form_ptk_create($id, $jumlah);
	}else{
		submit_ptk_create( $id ); 
		my_direct('index.php?com=kebutuhan');	 
	}	
else: 
	if($task == 'ptk_create'){
		$pagename = $modulname."_BN_ Tambah Data"; 
		$content = form_ptk_create($id, $jumlah);
	}else{
		$pagename = $modulname;
		load_facebox_script();
		$content = kebutuhan_jabatan() ;
	}
endif; 
generate_my_web($content, $pagename  );
?>